home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-02-26 | 4.2 KB | 130 lines | [TEXT/MPS ] |
- #
- # File: Makefile
- #
- # Contains: Example Codec Thing Makefile
- #
- # Copyright: © 1991-1996 by Apple Computer, Inc., all rights reserved.
-
- ## modify the location of this folder to match your system
-
- obj = "{Boot}Objects:"
-
- ##
-
- COptions = -b2 -warnings off -mc68020
- AOptions = -wb
- Roptions =
- UseAsm = -d NOASM=0
- PPCOptions = -warnings off -appleext on -traceback
-
- MWPPCLibs = ∂
- {MWPPCLibraries}InterfaceLib ∂
- {MWPPCLibraries}QuickTimeLib ∂
- {MWPPCLibraries}ComponentsInterfacesLib
-
- ExampleFat ƒ {obj}ExampleCodecFat
- Example68K ƒ {obj}ExampleCodec68K
- ExamplePPC ƒ {obj}ExampleCodecPPC
-
- {obj}ExampleCodec68K ƒ makefile examplecodec.r {obj}ExampleCodecD.68k {obj}ExampleCodecC.68k ∂
- {obj}ExampleCodecINIT.rsrc
- Rez {ROptions} -o {targ} ∂
- -c 'appl' -t 'INIT' ∂
- examplecodec.r ∂
- -d DECO_BUILD=1 -d COMP_BUILD=1 -d USE_INIT_STUB=1 ∂
- {UseAsm} ∂
- -d DECO68K=∂"{obj}ExampleCodecD.68k∂" ∂
- -d COMP68K=∂"{obj}ExampleCodecC.68k∂" ∂
- -d INITSTUB=∂"{obj}ExampleCodecINIT.rsrc∂"
-
- {obj}ExampleCodecD.68k ƒ ∂
- {obj}ExampleCodecD.c.o ∂
- {obj}ExampleCodecD.a.o ∂
- makefile
- Link -w -m CDCOMPONENTDISPATCH -rt 'cdec'=129 -ra 16 ∂
- -sg "Example Compressor" {SYMBOLS}∂
- {obj}ExampleCodecD.c.o ∂
- {obj}ExampleCodecD.a.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- -o {targ} -c "RSED" -t "rsrc"
-
- {obj}ExampleCodecC.68k ƒ ∂
- {obj}ExampleCodecC.c.o ∂
- {obj}ExampleCodecC.a.o ∂
- makefile
- Link -w -m CDCOMPONENTDISPATCH -rt 'cdec'=128 -ra 16 ∂
- -sg "Example Compressor" {SYMBOLS}∂
- {obj}ExampleCodecC.c.o ∂
- {obj}ExampleCodecC.a.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- -o {targ} -c "RSED" -t "rsrc"
-
-
- {obj}ExampleCodecC.c.o ƒ 'Makefile' examplecodec.c
- C {COptions} examplecodec.c {UseAsm} -d COMP_BUILD=1 -d DECO_BUILD=0 -o {targ}
-
- {obj}ExampleCodecC.a.o ƒ 'Makefile' examplecodec.a
- Asm {AOptions} examplecodec.a {UseAsm} -d COMP_BUILD=1 -d DECO_BUILD=0 -o {targ}
-
- {obj}ExampleCodecD.c.o ƒ 'Makefile' examplecodec.c
- C {COptions} examplecodec.c {UseAsm} -d COMP_BUILD=0 -d DECO_BUILD=1 -o {targ}
-
- {obj}ExampleCodecD.a.o ƒ 'Makefile' examplecodec.a
- Asm {AOptions} examplecodec.a {UseAsm} -d COMP_BUILD=0 -d DECO_BUILD=1 -o {targ}
-
- ############## Power PC ##################
-
- {obj}ExampleCodecFat ƒ makefile examplecodec.r ∂
- {obj}ExampleCodecC.pef {obj}ExampleCodecD.pef ∂
- {obj}ExampleCodecD.68k {obj}ExampleCodecC.68k ∂
- {obj}ExampleCodecINIT.rsrc
- Rez {ROptions} -o {targ} -c 'appl' -t 'INIT' ∂
- examplecodec.r -d POWERPC_NATIVE=1 -d POWERPC_FAT=1 -d POWERPC_QT=1
- -d DECO_BUILD=1 -d COMP_BUILD=1 -d USE_INIT_STUB=1 {UseAsm} ∂
- -d DECO68K=∂"{obj}ExampleCodecD.68k∂" ∂
- -d COMP68K=∂"{obj}ExampleCodecC.68k∂" ∂
- -d DECOPPC=∂"{obj}ExampleCodecD.pef∂" ∂
- -d COMPPPC=∂"{obj}ExampleCodecC.pef∂" ∂
- -d INITSTUB=∂"{obj}ExampleCodecINIT.rsrc∂"
-
-
- {obj}ExampleCodecPPC ƒ makefile examplecodec.r {obj}ExampleCodecC.pef {obj}ExampleCodecD.pef ∂
- {obj}ExampleCodecINIT.rsrc
- Rez {ROptions} -o {targ} -c 'appl' -t 'INIT' -d DECO_BUILD=1 -d COMP_BUILD=1 -d USE_INIT_STUB=1 ∂
- examplecodec.r -d POWERPC_NATIVE=1 -d POWERPC_QT=1 ∂
- -d DECOPPC=∂"{obj}ExampleCodecD.pef∂" ∂
- -d COMPPPC=∂"{obj}ExampleCodecC.pef∂" ∂
- -d INITSTUB=∂"{obj}ExampleCodecINIT.rsrc∂"
-
- {obj}ExampleCodecC.pef ƒ makefile {obj}ExampleCodecC.c.x
- MWLinkPPC -main "CDComponentDispatchRD" -o {targ} {obj}ExampleCodecC.c.x {MWPPCLibs}
-
- {obj}ExampleCodecD.pef ƒ makefile {obj}ExampleCodecD.c.x
- MWLinkPPC -main "CDComponentDispatchRD" -o {targ} {obj}ExampleCodecD.c.x {MWPPCLibs}
-
- {obj}ExampleCodecC.c.x ƒ makefile examplecodec.c
- MWCPPC examplecodec.c {PPCOptions} ∂
- -d POWERPC_NATIVE=1 -d NOASM=1 -d COMP_BUILD=1 -d DECO_BUILD=0 ∂
- -o {targ}
-
- {obj}ExampleCodecD.c.x ƒ makefile examplecodec.c
- MWCPPC examplecodec.c {PPCOptions} ∂
- -d POWERPC_NATIVE=1 -d NOASM=1 -d COMP_BUILD=0 -d DECO_BUILD=1 ∂
- -o {targ}
-
- ############## Loader stub ##################
-
- {obj}ExampleCodecINIT.rsrc ƒ {obj}ExampleCodecINIT.a.o makefile
- Link -w -m MAIN -rt 'INIT'=0 -ra =resLocked ∂
- {SYMBOLS} ∂
- {obj}ExampleCodecINIT.a.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- -o {targ} -c "RSED" -t "rsrc"
-
-
- {obj}ExampleCodecINIT.a.o ƒ ExampleCodecINIT.a makefile
- Asm {AOptions} ExampleCodecINIT.a -o {targ}
-